/**
 * @File name:  Constant.java 
 * @Create on:  2010-05-10
 * @Author   :  陈伟
 *
 * @ChangeList
 * ---------------------------------------------------
 * Date         Editor              ChangeReasons
 *
 **/

package com.boho.common;

import cn.boho.framework.po.DynaBeanMap;


/**
 * 常量类
 * 
 */
public class Constant {
	
	// 用户唯一标识的SESSION名称
	public static final String SESSION_USER_NO = "SESSION_USER_NO";
	// 用户对象的SESSION名称
	public static final String SESSION_USER_BEAN = "SESSION_USER_BEAN";
	// 用户操作权限的SESSION名称
	public static final String SESSION_ACTION = "SESSION_ACTION";
	// 用户系统菜单的SESSION名称
	public static final String SESSION_MENU = "SESSION_MENU";

	// 功能类型，匿名无SESSION功能
	public static final String FUNCTION_TYPE_ANONYMOUS = "1";
	// 功能类型，匿名有SESSION功能
	public static final String FUNCTION_TYPE_ANONYMOUS_SESSION = "2";
	// 功能类型，节点功能
	public static final String FUNCTION_TYPE_NODE = "3";
	// 功能类型，事件功能
	public static final String FUNCTION_TYPE_EVENT = "4";
	
	@SuppressWarnings("unchecked")
	public static DynaBeanMap actionDbm = null;
	
	//超级管理员编号
	public static final Integer ADMIN_NO = 1;
	//超级管理员角色
	public static final Integer ADMIN_ROLE = 1;
	

	// 是否有效，有效
	public static final Integer IS_VALID_TRUE = 1;
	// 是否有效，无效
	public static final Integer IS_VALID_FALSE = 0;
	
	// 是否锁定，未锁定
	public static final Integer IS_LOCKED_FALSE = 0;
	// 是否锁定，锁定
	public static final Integer IS_LOCKED_TRUE = 1;
	
	//值真
	public static final Integer IS_TRUE = 1;
	//值假
	public static final Integer IS_FALSE = 0;
	
	//父菜单的父编号
	public static final String PARENT_MENU = "0";
	
	//菜单分割规则
	public static final String MENU_RULE_SPLIT = "_";

	//重置默认密码
	public static final String DEFAULT_PASSWORD = "123456";
	
	
}